<%--
  Created by IntelliJ IDEA.
  User: 26056
  Date: 2021/5/14
  Time: 20:34
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript" src="../jquery-3.3.1.min.js"></script>
<html>
<head>
    <title>咨询数据</title>
</head>
<body>
<div align = "center" >
<c:if test = "${not empty Index}" >
    <c:forEach items="${Index}" var="Index" varStatus="s">
        <form action="/DispachResp" method="post">
        <hr color="black" width="30%" size="3" align="center"/>
        ${Index.id}.提问者：${Index.name}<br><br>
        ${Index.ask}<br>
        <hr color="black" width="30%" size="3" align="center"/>
        <input type="hidden" name="reqId" value=${Index.id} >
        <input type="submit" value="回复">
        </form>
    </c:forEach>
</c:if >

    <c:if test = "${not empty notresp}" >
        <c:forEach items="${notresp}" var="notresp" varStatus="s">
                <hr color="black" width="30%" size="3" align="center"/>
                    ${notresp.id}.提问者：${notresp.name}<br><br>
                    ${notresp.ask}<br><br>
                回答：<br><br>
                ${notresp.anstext}<br>
                <hr color="black" width="30%" size="3" align="center"/>
        </c:forEach>
    </c:if >

<form action="/user" method="post">
    <input type="submit" value="返回主页">
</form>
</div>
</body>
</html>
